<!doctype html>
<html>
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="">
    <title>登入页面</title>
    <?php include_stylesheets() ?>
    <?php include_javascripts() ?>
  </head>
  <body>  
      <div class="container">
      <div class="header text-center">
        <a class="navbar-brand navbar-logo" href="#" title=""></a>
        <h1 class="header-title">一个账号，玩转所有学听服务！<span class="sub">2000+课程，10000+点评，笔记</span></h1>
      </div>
      <div class="login">
          <form action="<?php echo url_for('user/login'); ?>" method="post" >
        <div class="login-form">
          <div class="form-group <?php if($sf_user->hasFlash('phone-error')): ?> 
                   has-error
              <?php endif; ?>">
            <input type="text" class="form-control" id="" name="phone" placeholder="通过手机号码登入" value='<?php echo $sf_request->getParameter('phone',''); ?>'>
            <?php if($sf_user->hasFlash('phone-error')): ?> 
                  <p class="form-control-static"><?php echo $sf_user->getFlash('phone-error'); ?></p>
              <?php endif; ?>
          </div>
            <div class="form-group <?php if($sf_user->hasFlash('password-error')): ?> 
                   has-error
              <?php endif; ?>">
                  <input type="password" class="form-control" id="" name="password" placeholder="密码">
                <?php if($sf_user->hasFlash('password-error')): ?> 
                  <p class="form-control-static"><?php echo $sf_user->getFlash('password-error'); ?></p>
              <?php endif; ?>
              </div>
          <button  type="submit" class="btn btn-green btn-lg btn-block">立即登录</button>
          <div class="text-right"><a href="#">其他方式登录</a> | <a href="#">忘记密码？</a></div>
           </form>
          <button  type="button" class="btn btn-default btn-lg btn-block" onclick='window.location.href="<?php echo url_for('user/reg'); ?>";'>注册学听账号</button>
        </div>
             
      </div>
    </div>
    <div class="footer text-center">
      <div class="footer-nav"><span class="active">简体</span> &nbsp; <a href="#">繁体</a> &nbsp; <a href="#">English</a> &nbsp; <a href="#">常见问题</a></div>
      <div class="copyright">
        <div>&copy;2014 <a href="#">有学在线教育</a> 上海有学教育科技有限公司版权所有</div>
        <div><a href="#">京ICP证140465号</a> &nbsp; <a href="#">京ICP备13032407号-1</a> &nbsp; <a href="#">京公网安备 11010802013162</a></div>
      </div>
    </div>
  </body>
</html>